import Vue from 'vue';
import Router from 'vue-router';
import Home from "../views/home/index.vue";
import Config from "../views/config/index.vue";
Vue.use(Router);

export default new Router({
  routes: [
    {
      path: "/",
      name: "home",
      component: Home,
      children: [
        {
          path: "config",
          name: "config",
          component: () => import("@/views/config/index"),
        },
        {
          path: "manage",
          name: "manage",
          component: () => import("@/views/manage/index"),
        },
      ],
      redirect:Config,
    },
    {
      path: '/design',
      name: 'design',
      component: () => import('../views/design/index'),
    },
  ],
});
